package com.hrbxlh.virtualization.enums;

/**
 * 集群角色枚举
 *
 * @author cheer
 */
public enum ContainerRoleEnum {

    SINGLE(0, "单节点"),
    MASTER(1, "集群主节点"),
    FIRST_SLAVE(2, "集群第一个从节点"),
    SECOND_SLAVE(3, "集群第二个从节点");

    private Integer code;
    private String message;

    ContainerRoleEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
